<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/commit/head.jsp" %>


<div class="layui-body">
	<div style="padding: 15px;">公告管理</div>
	<div class="layui-btn-group rolemanager">
		<button class="layui-btn" data-type ="add">增加</button>
		<button class="layui-btn" data-type ="update">修改</button>
		<button class="layui-btn" data-type ="del">删除</button>
	</div>
	<div >
	
	
	</div>
	<table class="layui-table" id="noticeTable">
	</table>
	
</div>
<div>
<form class="layui-form" id="fm" style="display:none" action="notice/add.html" method="post" enctype="multipart/form-data">
  <input type="hidden" name="id" id="id"> 
  <div class="layui-form-item">
    <label class="layui-form-label">标题</label>
    <div class="layui-input-block">
      <input type="text" name="headline" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
    </div>
  </div>
<div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">公告显示时间段</label>
      <div class="layui-input-inline" style="width: 100px;">
        <input type="text" id="time" name="startingtime" class="layui-input">
      </div>
      <div class="layui-form-mid">-</div>
      <div class="layui-input-inline" style="width: 100px;">
        <input type="text" id="time1" name="stoptime" class="layui-input">
      </div>
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">公告内容</label>
    <div class="layui-input-block">
      <textarea placeholder="请输入内容" class="layui-textarea" name="message"></textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
 </form>
</div>
<div>
<form class="layui-form" id="fm_update" style="display:none" lay-filter="noticeUpdate" action="notice/update.html" method="post" enctype="multipart/form-data">
 <input type="hidden" name="id" id="id"> 
  <div class="layui-form-item">
    <label class="layui-form-label">标题</label>
    <div class="layui-input-block">
      <input type="text" name="headline" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">公告显示时间段</label>
      <div class="layui-input-inline" style="width: 100px;">
        <input type="text" id="time2" name="startingtime" class="layui-input">
      </div>
      <div class="layui-form-mid">-</div>
      <div class="layui-input-inline" style="width: 100px;">
        <input type="text" id="time3" name="stoptime" class="layui-input">
      </div>
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">公告内容</label>
    <div class="layui-input-block">
      <textarea placeholder="请输入内容" class="layui-textarea" name="message"></textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
 </form>
</div>

<script type="text/html" id="headlineTpl">
  <a href="notice/show1.html?id={{d.id}}" class="layui-table-link" target="_self">{{ d.headline }}</a>
</script>
<script src="./layer/layer.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/noticelist.js"></script>
<%@include file="/WEB-INF/commit/dibu.jsp" %>